package com.asjy.service;

import com.asjy.po.Cart;
import com.asjy.po.Order;
import com.asjy.po.OrderExt;
import com.asjy.po.OrderPageBean;

import java.io.IOException;
import java.util.Map;

/**
 * @Auther: lilinlin
 * @Date: 2021/4/16
 * @Description: com.asjy.service
 * @version: 1.0
 */
public interface OrderService {
    Integer saveOrderAndItem(Order order, Cart cart);

    OrderExt getOrderById(Integer oId);

    OrderPageBean getOrdersByUid(OrderPageBean orderPageBean);

    Map<Long, Integer> getOrderCountByState(Integer uId);

    void changeState(Order order);
}